<?=modules::run('home/top');?>

<body>
<!--date-->

<link rel="stylesheet" href="<?=PATH_URL.'static/js/date/jquery.ui.all.css'?>">
<script src="<?=PATH_URL.'static/js/date/jquery.ui.core.js'?>"></script>
<script src="<?=PATH_URL.'static/js/date/jquery.ui.datepicker.js'?>"></script>

<script>
	jQuery(function() {
		jQuery( "#datepicker" ).datepicker({
			changeMonth: true,
			changeYear: true,
			dateFormat: "dd/mm/yy",
			yearRange: "c-50:c+10",
		});
	});
</script>

<!--form-->

<script type="text/javascript" src="<?=PATH_URL.'static/js/form/jquery.validate.min.js'?>"></script>
<script type="text/javascript" src="<?=PATH_URL.'static/js/form/messages_vi.js'?>"></script>



<?php
	include_once('function/func.php');
?>
<div id="wrapper">
	<header>
		<?=modules::run('home/head');?>
	</header>
	
	<nav id="nav">
		<?=modules::run('home/menu')?>
	</nav>
	
	<div class="content">
		<h1>Tạo tài khoản</h1>
		
		<div class="frm_login">
        	<form id="fRegister" action="" method="post" enctype="multipart/form-data" >
			<div class="w90">
				<h4>Thông tin đăng nhập</h4>
				
				<div class="register">
					<div class="one_register full">
						<label>Email: <span>*</span></label><span class="checkUser"></span>
						<input type="text" value="" name="email" id="email" class="required email" />
                        <span class="error email"></span>
					</div>
					<div class="one_register full">
						<label>Mật khẩu: <span>*</span></label>
						<input minlength="6" class="required" type="password" value="" name="pass" id="pass" />
                        <span class="error pass"></span>
					</div>
					<div class="one_register full">
						<label>Nhập lại mật khẩu: <span>*</span></label>
						<input type="password" value="" name="reg_pass" id="reg_pass" class="required" />
                        <span class="error reg_pass"></span>
					</div>
				</div>
			</div>
			
			<div class="w90">
				<h4>Thông tin cá nhân</h4>
				
				<div class="register">
					<div class="one_register 270">
						<label>Họ và tên: <span>*</span></label>
						<input class="required" type="text" value="" name="name" id="name" />
                        <span class="error name"></span>
					</div>
					<div class="one_register full">
						<label>Ngày sinh:</label>
						<input type="text" value="" name="brithday" id="datepicker" />
					</div>
					<div class="one_register full">
						<label>Số điện thoại: <span>*</span></label>
						<input type="text" value="" name="phone" id="phone" />
                        <span class="error phone"></span>
					</div>
					<div class="one_register 270">
						<label>Địa chỉ: <span>*</span></label>
						<textarea name="address" id="address"></textarea>
                        <span class="error address"></span>
					</div>
				</div>
			</div>
            
            <div class="w90">
				<h4>Thông tin mã xác nhận</h4>
				
				<div class="register">
					<div class="one_register 270">
						<label>Mã xác nhận: <span>*</span></label>
                        <?=$images;?>
						<input class="required" type="text" value="" name="re_capcha" id="re_capcha" style="height: 19px;width: 90px;margin-top: 10px;" />
                        <span class="error re_capcha" style="margin-top: 18px;"></span>
                        <input type="hidden" id="capcha" name="capcha" value="<?=$cap_w?>" />
					</div>
				</div>
			</div>
			
            <dir class="regis_bt button" onclick="register()">Đăng ký</dir>
			
            </form>
		</div>
	</div><!--end content-->
	
	<footer>
		<?=modules::run('home/footer');?>
	</footer>
</div><!--end wrapper-->
</body>
</html>
